﻿<%@ Page Language="vb" Title="Add New Post &lsaquo; Meo Tom's Blog" ValidateRequest="false" MasterPageFile="Admin.Master" AutoEventWireup="false" CodeBehind="ArticleCreate.aspx.vb" Inherits="MeoTom.Web.Blog.ArticleCreate" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ctph" Runat="Server">

    <div style="float:left;width:100%;">
        <div id="iconArticle" class="icon32"><br /></div>
        <h2>Add New Post</h2>
    </div>
    
    <div class="form-wrap" style="float:left;width:71%;margin-right:20px;">
        <div style="display:none;" class="lblError" runat="server" id="lblError"></div>
        <div class="form-field" style="margin-bottom:5px;">
            <label>Title
            <asp:TextBox ID="txtTitle" Text="" onfocus="javascript:Util.GetTestUrl(this.value,'divTestUrl');" onblur="javascript:Util.GetTestUrl(this.value,'divTestUrl');" style="width:99%;" CssClass="TitleBlog" runat="server"></asp:TextBox></label>
        </div> 
        <div class="form-field" id="divTestUrl" style="height:15px;font-size:11px;padding-left:5px;"></div>
        <div class="form-field">
            <label>Short description
                <asp:TextBox ID="txtDesc" runat="server" TextMode="MultiLine" Width="99%" onkeydown="textCounter(gmobj('ctl00_ctph_txtDesc'),gmobj('countChar'),250);" onKeyUp="textCounter(gmobj('ctl00_ctph_txtDesc'),gmobj('countChar'),250)"></asp:TextBox></label>
            <div id="countChar" style="text-align:right;height:15px;"></div>
        </div>
        <div class="form-field">
            <label>Body<FCKeditorV2:FCKeditor ID="txtBody" runat="server" ToolbarSet="MyCustoms" 
                BasePath="/Library/Editor/fckeditor/" SkinPath="/Library/Editor/fckeditor/editor/skins/silver/" Height="500px"></FCKeditorV2:FCKeditor></label>
        </div>
    </div>            
    <div style="float:left;width:25%;">
        <div class="otherBox">
            <div class="headerBox">Publish</div>
            <div class="contentBox">
                <p class="publishInfo">Status: <b>Draft</b></p>
                <p class="publishInfo">Visibility: <span style="font-weight:bold;" id="ArticleVisibility">Public</span> <a href="javascript:void(0);" title="Edit" id="lnkEdit" onclick="javascript:Util.EditArticleVisible('<%= ArticleVisibleContent.ClientID %>');">Edit</a>
                    <span id="ArticleVisibleContent" runat="server" style="display:none;"></span>
                </p>
                <p class="publishInfo"><img src="/Images/Calendar-scheduleHS.png" width="12" height="12" alt="Publish Date" />&nbsp;<span id="PublishInfo">Publish <b>immediately</b></span> <a href="javascript:void(0);" title="Edit" id="lnkEditDatePublish" onclick="javascript:Util.EditArticlePublish('<%=ArticlePublishContent.ClientID %>');">Edit</a>
                    <span id="ArticlePublishContent" runat="server" style="display:none;"></span>                        
                </p>
                <div class="major-publishing-actions">
                    <input type="hidden" id="txtTestUrl" name="txtTestUrl" />
                    <asp:Button ID="btnSave" CssClass="button" runat="server" style="font-weight:bold;" Text="Save Draft" />
                    <asp:Button ID="btnCreate" CssClass="submit" style="background-color:#21759B;width:30%;" runat="server" Text="Publish" />
                </div>
            </div>
        </div>
        <div class="otherBox">
            <div class="headerBox">Post Tags</div>
            <div class="contentBox" style="padding-bottom:10px;">
                <div style="text-align:center;padding-top:10px;"><asp:TextBox ID="txtTag" style="width:90%;" runat="server"></asp:TextBox></div>
                <a href="javascript:Tags.ShowTag('<%= tags.ClientID %>');" class="TagUsed" title="Show previously used tags">Show previously used tags</a>
                <div id="tags" runat="server" style="display:none;"></div>                    
            </div>
        </div>
        <div class="otherBox">
            <div class="headerBox">Upload Image</div>
            <div class="contentBox">
                <p>
                    <asp:FileUpload ID="fileUpload" runat="server" /></p>               
            </div>
        </div>            
        <div class="otherBox">
            <div class="headerBox">Options</div>
            <div class="contentBox">
                <p>
                    <asp:CheckBox ID="drpIsTopPage" Checked="true" Text="&nbsp;Top Story" runat="server" />
                </p>
                <p>
                    <asp:CheckBox ID="drpCommentEnabled" Checked="true" Text="&nbsp;Comments" runat="server" />
                </p>
                <p>
                    <asp:CheckBox ID="drpIsVote" Checked="true" Text="&nbsp;Vote" runat="server" />
                </p>
                <p>
                    <asp:CheckBox ID="drpIsPicture" Text="&nbsp;Picture" runat="server" />
                </p>
                <p>
                    <asp:CheckBox ID="drpIsMedia" Text="&nbsp;Media" runat="server" />
                </p>
            </div>
        </div>  
        <div class="otherBox">
            <div class="headerBox">Categories</div>
            <div class="contentBox">
                <div id="catdetail" runat="server" style="padding-top:5px;padding-bottom:5px;"></div>
            </div> 
        </div>                               
    </div>    
    <script language="javascript" type="text/javascript">
        Menus.DisplaySubMenu('menu-1-2');
        Menus.ChangeSelectedMenu('menu-1-2');
    </script>
</asp:Content>

